package com.qdu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qdu.entity.Building;
import com.qdu.mapper.BuildingMapper;
import com.qdu.service.BuildingService;
@Service
public class BuildingServiceImpl implements BuildingService{
	
	@Autowired
	private BuildingMapper BuildingMapper;

	@Override
	public Building selectBuildingById(int id) {
		return BuildingMapper.selectBuildingById(id);
	}

	@Override
	public boolean addBuilding(Building Building) {
		return BuildingMapper.addBuilding(Building);
	}

	@Override
	public boolean modifyBuilding(Building Building) {
		return BuildingMapper.modifyBuilding(Building);
	}

	@Override
	public boolean deleteBuildingById(int id) {
		return BuildingMapper.deleteBuildingById(id);
	}

	@Override
	public List<Building> selectAllBuilding() {
		return BuildingMapper.selectAllBuilding();
	}
}
